Skip to content

refactor(screening): one rule for another list's rows, one look for rows still loading - #1615

Merged
sickerine merged 4 commits into
devfrom
refactor/screening-one-list-rule
Nov 28, 2026
Merged

sickerine merged 4 commits into
devfrom
refactor/screening-one-list-rule

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Screen, Papers and the Screening list each kept their own copy of one rule: "is the list on screen another list than the one asked for". When it is, the page shows skeletons. When it's only another page, search or order of the same list, the rows stay up, dimmed. Each copy held state set during render and compared it by hand, and rounds 18 and 19 fixed each copy separately.

  • useCursorPageAt / useCursorPage take list: what makes another list rather than another page, search or order, such as a tab, a filter or a queue. While the rows up are of another list than the one asked for, the hook says isOther. The three copies are gone:
    • Screen's arrivedList and its otherQueue / switching
    • Papers' arrivedList
    • the Screening list's arrivedList
  • A list not read ("skip", the list's "Needs you" tab) lets go of the rows it showed. A tab asked for again shows skeletons, as the list's own copy did, never rows from before.
  • Rows still up while a list loads were dimmed four ways across the app: a fade only, a fade with no clicks, with or without a transition. STALE_ROWS in list-controls is the one look: dimmed, out of reach of the pointer, with a fade. It's used by:
    • screening: the list, Papers, Overview, Sources, People, and the form's lists
    • the library and its collections filter
    • extraction's list, setup and pager
    • communities, submissions, bookmarks and Shared

Checks:

  • tsc and check:ui-rules pass.
  • Vitest on tests/components and lib/hooks: 322 tests pass.
  • On a production build, npm run verify -- shift passes, with no new layout shifts, flashes or errors against dev.openscholar.ai:
    • /screening while switching All, Needs you, In progress and Finished, in Chromium and Firefox
    • a screening's Papers through Excluded and Waiting, then Screen, in Chromium

…ows still loading

- Screen, Papers and the Screening list each kept their own copy of "is this another list than the one
  asked for", a state set during render and compared by hand. The paged-list hook now takes `list`, what
  makes another list rather than another page, search or order of the same, and says `isOther` while the
  rows up are of another list. The three copies are gone. A list not read (`"skip"`) lets go of its rows,
  so a tab asked for again shows skeletons rather than rows from before.
- Rows still up while the next page, search or order loads were dimmed four ways across the app (fade
  only, fade and no clicks, with or without a transition). STALE_ROWS in list-controls is the one look:
  dimmed and out of reach of the pointer.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T06:50:46.709463Z 18bbb24 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63dfe19e-7b4b-4f86-8e2b-54a2be345eb7
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18bbb2427c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread components/screening/index-page.tsx Resolved
…ther list's too

From the cross-family review of this PR: `isOther` looked only at the rows on screen, so it said nothing
until a first page had arrived. Screen let a vote through on the paper still open from the queue before, when
the queue changed before its first page came; the Screening list showed its pinned rows, not skeletons, when
it left "Needs you" for a list not read yet. The hook now keeps the list whose rows are up, or were last (a
list not read counts as shown), and says `isOther` from the moment another is asked for until its rows come.
Screen holds its votes while `isOther` too.
- The discussion's queries worked out the person's standing and the screening's reviewers again for every
  paper of a page, and read each person they name one after another. They are worked out once (`readerOf`),
  and the people read together (`peopleIn`), the same in the thread, the list of all and saying something.
- The sets a job reads and a screening's sources share five kinds, written out twice: written once now.
- An English-only copy of `ago` beside the translated one in words.ts, and a type nothing reads, are gone.
… never animates and transitions at once

From Codex's review of #1615: STALE_ROWS fades the list while the next page is read, and the list also ran
fade-enter, which animates opacity. Firefox runs the two against each other and jumps as the entry ends.
@sickerine
sickerine merged commit 49382b6 into dev Nov 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant